@use "sass:color";

.page {
  min-height: 100vh;
  background: #fff;
}

.header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #f0f2f5;
}

.title {
  font-weight: 700;
  font-size: 16px;
}

.close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #1f2d3d;
  text-decoration: none;
  border: 1px solid #eef0f4;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31,45,61,.06);
}

.tabs {
  position: sticky;
  top: 52px;
  z-index: 5;
  background: #fff;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f2f5;
}

.tabGroup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tabLabel {
  font-size: 13px;
  color: #31415a;
  font-weight: 500;
  white-space: nowrap;
}

.tab {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  margin-right: 8px;
  font-size: 13px;
  color: #31415a;
  background: #f6f8fb;
  border: 1px solid #e6ebf2;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover {
  background: #eef2f6;
  border-color: #d1d9e6;
}

.tabActive {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-color: transparent;
}

.typeTabs {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-bottom: 1px solid #f0f2f5;
}

.typeTab {
  flex: 1;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #31415a;
  background: #f6f8fb;
  border: 1px solid #e6ebf2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.typeTab:hover {
  background: #eef2f6;
  border-color: #d1d9e6;
}

.typeTabActive {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-color: transparent;
}

.grid {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eef0f4;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31,45,61,.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31,45,61,.1);
}

.thumbWrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f2f3f5;
}

.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playIcon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.articleIcon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.name {
  padding: 8px 10px 10px;
  font-size: 13px;
  color: #1f2d3d;
  line-height: 1.4;
}

.loadMore {
  text-align: center;
  color: #8a93a0;
  padding: 12px 0 16px;
  font-size: 13px;
}

.mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.playerPanel {
  width: 92vw;
  max-width: 720px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.playerHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  color: #e5e7eb;
  background: #0b0b0b;
  font-size: 13px;
}

.closeBtn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #111827;
  color: #e5e7eb;
  border: none;
  cursor: pointer;
}

.closeBtn:hover {
  background: #1f2937;
}

.playerBody {
  width: 100%;
  height: 52vw;
  max-height: 420px;
  background: #000;
}

